<%= form_for(@user) do |f| %>

  <%= f.label :nickname, "昵称" %>
  <%= f.text_field :nickname %>

  <%= f.label :email, "邮箱" %>
  <%= f.text_field :email %>

  <%= f.label :password, "密码" %>
  <%= f.password_field :password %>

  <%= f.label :password_confirmation, "确认密码" %>
  <%= f.password_field :password_confirmation %>

  <br />

  <%= f.submit "确认", class: "btn btn-primary" %>
<% end %>
